<?php
include 'partials/header.php';
require __DIR__ . '/notes/notes.php';


if (!isset($_POST['id'])) {
    include "partials/not_found.php";
    exit;
}
$noteId = $_POST['id'];
deletenote($noteId);

header("Location: index.php");
